﻿
using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreFoundation;
using MonoTouch.ImageIO;
 

namespace Beauty
{
	public partial class Pos_MainMenu : BaseController
	{
		public Pos_MainMenu () : base (null, null)
		{
		}

		 

	 
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			NavController.SetNavigationBarHidden (true, true);
			UIView viewMenu = new UIView (new RectangleF(0,20,1024,60));
			viewMenu.BackgroundColor = UIColorExtensions.FromHexString ("#ff485f");
		 
 			 UIButton cmdHome = new UIButton (UIButtonType.Custom);
 			UIImage imgHome = new UIImage ("mainmenu.png");
 			UIImage imgHomeTouched =  new UIImage ("mainmenu1.png");
 			cmdHome.SetBackgroundImage (imgHome, UIControlState.Normal);
 			cmdHome.SetBackgroundImage (imgHomeTouched, UIControlState.Highlighted);
 			cmdHome.Frame = new RectangleF (0, 0, 60, 60);

			cmdHome.TouchUpInside += (object sender, EventArgs e) => {
				SidebarController.ToggleMenu();

			};
			viewMenu.AddSubview (cmdHome);
		 	

			UIButton cmdService = new UIButton (UIButtonType.Custom);
			UIImage imgService = UIImage.FromFile("POS/service.png");
			UIImage imgServiceTouched = UIImage.FromFile("Pos_active/service.png");
			cmdService.SetBackgroundImage (imgService, UIControlState.Normal);
			cmdService.SetBackgroundImage (imgServiceTouched, UIControlState.Highlighted);
			cmdService.Frame = new RectangleF (120, 0, 40, 40);
			UILabel lbService = new UILabel ();
			lbService.Frame = new RectangleF (110, 20, 60, 40);
			lbService.Font = UIFont.SystemFontOfSize (14f);
			lbService.Text="Services";
			cmdService.TouchUpInside += (object sender, EventArgs e) => {
				 
			};
			 
			 viewMenu.AddSubview  (lbService);
			 viewMenu.AddSubview  (cmdService);

			UIButton cmdProducts = new UIButton (UIButtonType.Custom);
			UIImage imgProducts = UIImage.FromFile("POS/product.png");
			UIImage imgProductsTouched = UIImage.FromFile("Pos_active/product.png");
			cmdProducts.SetBackgroundImage (imgProducts, UIControlState.Normal);
			cmdProducts.SetBackgroundImage (imgProductsTouched, UIControlState.Highlighted);
			cmdProducts.Frame = new RectangleF (240, 0, 40, 40);
			UILabel lbProducts = new UILabel ();
			lbProducts.Frame = new RectangleF (230, 20, 60, 40);
			lbProducts.Font = UIFont.SystemFontOfSize (14f);
			lbProducts.Text="Products";
			viewMenu.AddSubview (lbProducts);
			viewMenu.AddSubview (cmdProducts);

			UIButton cmdPackages = new UIButton (UIButtonType.Custom);
			UIImage imgPackages = UIImage.FromFile("POS/package.png");
			UIImage imgPackagesTouched = UIImage.FromFile("Pos_active/package.png");
			cmdPackages.SetBackgroundImage (imgPackages, UIControlState.Normal);
			cmdPackages.SetBackgroundImage (imgPackagesTouched, UIControlState.Highlighted);
			cmdPackages.Frame = new RectangleF (360, 0, 40, 40);
			UILabel lbPackage = new UILabel ();
			lbPackage.Frame = new RectangleF (350, 20, 70, 40);
			lbPackage.Font = UIFont.SystemFontOfSize (14f);
			lbPackage.Text="Packages";
			viewMenu.AddSubview (lbPackage);
			viewMenu.AddSubview (cmdPackages);

			UIButton cmdGift = new UIButton (UIButtonType.Custom);
			UIImage imgGift = UIImage.FromFile("POS/gift-card.png");
			UIImage imgGiftTouched = UIImage.FromFile("Pos_active/gift-card.png");
			cmdGift.SetBackgroundImage (imgGift, UIControlState.Normal);
			cmdGift.SetBackgroundImage (imgGiftTouched, UIControlState.Highlighted);
			cmdGift.Frame = new RectangleF (480, 0, 40, 40);
			UILabel lbGift = new UILabel ();
			lbGift.Frame = new RectangleF (465, 20, 70, 40);
			lbGift.Font = UIFont.SystemFontOfSize (14f);
			lbGift.Text="Gift Cards";
			viewMenu.AddSubview (lbGift);
			viewMenu.AddSubview (cmdGift);

			UIButton cmdMisc = new UIButton (UIButtonType.Custom);
			UIImage imgMisc = UIImage.FromFile("POS/misc.png");
			UIImage imgMiscTouched = UIImage.FromFile("Pos_active/misc.png");
			cmdMisc.SetBackgroundImage (imgMisc, UIControlState.Normal);
			cmdMisc.SetBackgroundImage (imgMiscTouched, UIControlState.Highlighted);
			cmdMisc.Frame = new RectangleF (600, 0, 40, 40);
			UILabel lbMisc = new UILabel ();
			lbMisc.Frame = new RectangleF (606, 20, 70, 40);
			lbMisc.Font = UIFont.SystemFontOfSize (14f);
			lbMisc.Text="Misc";
			viewMenu.AddSubview (lbMisc);
			viewMenu.AddSubview (cmdMisc);


			UIButton cmdDiscount = new UIButton (UIButtonType.Custom);
			UIImage imgDiscount = UIImage.FromFile("POS/discount.png");
			UIImage imgDiscountTouched = UIImage.FromFile("Pos_active/discount.png");
			cmdDiscount.SetBackgroundImage (imgDiscount, UIControlState.Normal);
			cmdDiscount.SetBackgroundImage (imgDiscountTouched, UIControlState.Highlighted);
			cmdDiscount.Frame = new RectangleF (720, 0, 40, 40);
			UILabel lbDiscount = new UILabel ();
			lbDiscount.Frame = new RectangleF (710, 20, 70, 40);
			lbDiscount.Font = UIFont.SystemFontOfSize (14f);
			lbDiscount.Text="Discount";
			viewMenu.AddSubview (cmdDiscount);
			viewMenu.AddSubview (lbDiscount);

			 
			UIButton cmdList = new UIButton (UIButtonType.Custom);
			UIImage imgList = UIImage.FromFile("POS/list.png");

			cmdList.SetBackgroundImage (imgList, UIControlState.Normal);

			cmdList.Frame = new RectangleF (840, 0, 40, 40);
			UILabel lbList = new UILabel ();
			lbList.Frame = new RectangleF (840, 20, 70, 40);
			lbList.Font = UIFont.SystemFontOfSize (14f);
			lbList.Text="List";
		
			viewMenu.AddSubview (lbList);
			viewMenu.AddSubview (cmdList);
		 
		
			UIView Content = new UIView (new RectangleF(0,80,1024,688));
		 
			Pos_Services tabServices = new Pos_Services ();
			tabServices.View.Frame = new RectangleF (0, 0, 1024, 688);
			Content.Add (tabServices.View);
			// Content.BackgroundColor = UIColor.Red;
			View.AddSubview (viewMenu);
			View.AddSubview (Content);

			 
		}
	}
}

